From: Richard M. Stallman Date: Thu, 10 Mar 1994 15:59:22 +0000 (+0000) Subject: (command_loop_1): On entry, set this_command X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~92771 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=51d5a2c95f507e988922ccd80828a1c73405bdd7;p=emacs.git (command_loop_1): On entry, set this_command after running Vpost_command_hook. --- diff --git a/src/keyboard.c b/src/keyboard.c index 7bd709ae1d4..e07e62be495 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -908,7 +908,6 @@ command_loop_1 () nonundocount = 0; no_redisplay = 0; this_command_key_count = 0; - last_command = this_command; /* Make sure this hook runs after commands that get errors and throw to top level. */ @@ -924,6 +923,9 @@ command_loop_1 () Vpost_command_hook = Vcommand_hook_internal; } + /* Do this after running Vpost_command_hook, for consistency. */ + last_command = this_command; + while (1) { /* Install chars successfully executed in kbd macro. */